package cn.mf.hrm.client;

import cn.mf.hrm.doc.CourseDoc;
import cn.mf.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/*调用ES的feign接口*/
@FeignClient(value = "HRM-SEARCH" , fallbackFactory = CourseESFeignFallbackFactory.class)
@RequestMapping("/es/course")
public interface CourseESFeign{

   @PostMapping("/save")
   AjaxResult save(@RequestBody CourseDoc course);

}
